 /*
  * Copyright (c) 2021, 2023, yishun.cn All rights reserved.
  *
  */
 package cn;

 import cn.shun.config.SpringConfig;
 import cn.shun.entity.User;
 import cn.shun.mapper.UserMapper;
 import org.junit.jupiter.api.DisplayName;
 import org.junit.jupiter.api.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

 /**
  * <p>Project: MyBatis2023 - OneToOne
  * <p>Powered by yishun On 2023-02-02 19:40:09
  *
  * @author yishun [2465734101@qq.com]
  * @version 1.0
  * @since 17
  */
 @SpringJUnitConfig(SpringConfig.class)
 public class OneToOne {
     @Autowired
     UserMapper um;
     @Test
     @DisplayName("一对一测试")
     void t1() {
        User user= um.queryByName("admin");
         //System.out.println(user.getUsername());
         //System.out.println(user.getUserinfo());
         System.out.println(user);
     }
 }
